<%-- 
    Document   : test
    Created on : Mar 10, 2014, 11:26:48 AM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="jscolor/jscolor.js"></script>
        <script language="javascript" type="text/javascript">
        var xmlHttp
        //var xmlHttp
        function showState(str)
        {
            if (typeof XMLHttpRequest != "undefined")
            {
                xmlHttp = new XMLHttpRequest();
            }
            xmlHttp.onreadystatechange =stateChange;
            xmlHttp.open("GET",str,true);
            xmlHttp.send(null);
        }
        function stateChange()
        {
            if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
            {
                document.getElementById("city").innerHTML=xmlHttp.responseText
            }
        }
        </script>
    </head>
    <body>
        <script type="text/javascript" src="jscolor/jscolor.js"></script>
<%
    String c=request.getParameter("c");
%>
<table border="1">
    <tr>
        <td bgcolor="#<%=c%>"><%=c%></td>
        <td>22222</td>
    </tr>
    <tr>
        <td>33333</td>
        <td>44444</td>
    </tr>
</table>

        <input id="myValue"  style="background: <%="#"+c%>"  class="color {required:false}">
        Click here: <input class="color" value="660000">
        
    </body> 
</html>
